<?php foreach ($photos as $i => $photo): ?>
	<div class="pin" data-id="189573465534106697"> 
		<a class="media" href="<?php echo url_for('@showphoto?user_slug='.$photo->getUserSlug().'&name_slug='.$photo->getNameSlug().'&id='.$photo->getID())?>" > 			
			<img src="<?php echo($photo->getPath()) ?>" class="mediaIMG" />
		</a> 
		<p>Name: <?php echo($photo->getName()) ?></p>
		<p>Author: <?php echo($photo->getAuthor()) ?></p>		
	</div>
<?php endforeach; ?>

<div class="more">
	<?php $result = $photos[0]->getCount() ?>	
	<?php if($result[0]['count'] > $photos->count()) : ?>
		<a href="javascript:fncGetMore()">More Photo.....</a>
	<?php endif; ?>
</div>